import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:xin_nuo_pda/product/bind_part/BindPartController.dart';
import 'package:xin_nuo_pda/values/constant.dart';
import 'package:xin_nuo_pda/views/SubTitleBar.dart';
import 'package:xin_nuo_pda/views/edittext/TitleEditText.dart';

class BindPartPage extends StatelessWidget {
  final controller = Get.put(BindPartController());
  TextEditingController textController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(USER),
      ),
      body: Column(
        children: [
          SubTitleBar("PC库补料", "保存", () {
                controller.bindPart();
          }),
          TitleEditText(
            "成品批次:",
            "请扫描成品批次",
            (value) {
              controller.lotID = value;
            },
            controller: textController,
          ),
          TitleEditText(
            "半成品批次:",
            "请扫描半成品批次",
            (value) {
              controller.lotID2 = value;
            },
            controller: textController,
          ),
        ],
      ),
    );
  }
}
